<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改支付商扩展')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-payerInfo-edit" th:object="${payerInfo}">
            <input id="payerId" name="payerId" th:field="*{payerId}"  type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">下单服务端网关：</label>
				<div class="col-sm-8">
					<input id="serviceUrl" name="serviceUrl" th:field="*{serviceUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">回调ip：</label>
				<div class="col-sm-8">
					<input id="serviceIp" name="serviceIp" th:field="*{serviceIp}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/payerInfo";
		$("#form-payerInfo-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-payerInfo-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
